/**
 * 
 */
package com.disys.dao.support;

import java.util.ArrayList;
import java.util.List;

import com.disys.dao.GenericDAO;
import com.disys.model.support.Rec140ERWOTCLOCSupport;

/**
 * @author Ubaid Raja
 * 
 */
public class Rec140ERWOTCLOCSupportDAO extends
		GenericDAO<Rec140ERWOTCLOCSupport> {

	public Rec140ERWOTCLOCSupportDAO() {
		super(Rec140ERWOTCLOCSupport.class);
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = -2167149162362417476L;

	public Rec140ERWOTCLOCSupport find() {
		try {
			return super.findAll().get(0);
		} catch (ArrayIndexOutOfBoundsException e) {
			return new Rec140ERWOTCLOCSupport();
		}

	}

	public List<Rec140ERWOTCLOCSupport> findAll() {
		try {
			return super.findAll();
		} catch (Exception e) {
			return new ArrayList<Rec140ERWOTCLOCSupport>();
		}

	}

	public Rec140ERWOTCLOCSupport update(Rec140ERWOTCLOCSupport entity) {
		return super.update(entity);
	}

}
